Skip to main content
POST
[FC2] Optimize File

Authorizations

Authorization
string
header
required

Bearer token from your account (https://agent.ai/user/integrations#api)

Body

application/json
input_file_url
string
required

S3 or public URL of the file to optimize.

input_format
string
default:pdf
required

File extension (pdf, png, or jpg).

output_variable_name
string
default:optimized_file
required

Variable name for the result.

Pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
profile
enum<string>
default:web
Available options:
web,
print,
archive,
max

Response

Successful response

status
integer<int32>

HTTP status code of the action response

response
object

Response data from the action